package com.bootcamp.s3_1013.database._1014;

public enum Person {
    ZHANGSAN(1,"zs"),
    LISI(2,"ls"),
    WANGWU(2,"wu")
    ;
    // ; 之前是示例对象，之后同普通类没有区别,枚举类构造方法无修饰符，不能在外部创建对象
    int id;
    private String name;

    Person(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }
}
